﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ARS.Control.Custom.Entity.Forms
{
    public class IntegerForm:CharValidateForm
    {
        protected override string GetValidateReg()
        {
            return @"^\d+(\.\d+)?$";
        }
        protected override string GetValidateTip()
        {
            return "只允许输入整数";
        }
        //protected override void RenderContents(System.Web.UI.HtmlTextWriter output)
        //{
        //    output.Write(string.Format(base.GetInputTextHtml(),"reg=\"^[\u4e00-\u9fa5]+$\" tip=\"只允许中文字符\""));
        //}
    }
}
